#include "Graphics.h"

bool Graphics::init(unsigned int width, unsigned int height, unsigned short bpp)
{
	if(SDL_Init(SDL_INIT_VIDEO) == -1) {
        return false;
    }

	_screen = SDL_SetVideoMode(width, height, bpp, SDL_HWSURFACE);

    if(!_screen) {
        return false;
    }
	
	_initialized = true;
	return true;
}
